package my.home;

import java.sql.Timestamp;
import java.util.Random;

public class meetingDataBean {
	private int m_id;
	private String m_title;
	private String m_password;
	private String m_location;
	private String m_description;
	private String m_createtime;
	private String m_initiatorAlias;
	private String m_initiatorEmail;
	private String poll_time;
	private String poll_id;
	
	
	public int getM_id() {
		return m_id;
	}
	public void setM_id(int m_id) {
		this.m_id = m_id;
	}
	public String getM_title() {
		return m_title;
	}
	public void setM_title(String m_title) {
		this.m_title = m_title;
	}
	public String getM_password() {
		return m_password;
	}
	public void setM_password(String m_password) {
		this.m_password = m_password;
	}
	public String getM_location() {
		return m_location;
	}
	public void setM_location(String m_location) {
		this.m_location = m_location;
	}
	public String getM_description() {
		return m_description;
	}
	public void setM_description(String m_description) {
		this.m_description = m_description;
	}
	public String getM_createtime() {
		return m_createtime;
	}
	public void setM_createtime(String m_createtime) {
		this.m_createtime = m_createtime;
	}
	public String getM_initiatorAlias() {
		return m_initiatorAlias;
	}
	public void setM_initiatorAlias(String m_initiatorAlias) {
		this.m_initiatorAlias = m_initiatorAlias;
	}
	public String getM_initiatorEmail() {
		return m_initiatorEmail;
	}
	public void setM_initiatorEmail(String m_initiatorEmail) {
		this.m_initiatorEmail = m_initiatorEmail;
	}
	public String getPoll_time() {
		return poll_time;
	}
	public void setPoll_time(String poll_time) {
		this.poll_time = poll_time;
	}
	public String getPoll_id() {
		return poll_id;
	}
	public void setPoll_id(int length) {
		this.poll_id = getRandomString(length);
	}
	
	private String getRandomString(int length)
	{
	  StringBuffer buffer =new StringBuffer();
	  Random random =new Random();
	 
	  String chars[]= 
	    "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,0,1,2,3,4,5,6,7,8,9".split(",");
	 
	  for(int i=0; i<length ; i++)
	  {
	    buffer.append(chars[random.nextInt(chars.length)]);
	  }
	  
	  return buffer.toString();
	}
	

}
